
<script>
import { ref, h, reactive } from 'vue'
export default {
  setup () {
    const root = ref(null)
    const someObj = reactive({ name: 'some' })
    const name = ref('yanxun')

    return () =>
      h('div', {
        ref: root
      }, [someObj.name, name.value])

    // with JSX
    // return () => <div ref={root} />
  }

}
</script>

<style>

</style>
